const path = require('path')
const webpack = require('webpack')

function resolve(dir) {
  return path.join(__dirname, '..', dir)
}

module.exports = {
  module: {
    rules: [],
  },
  resolve: {
    alias: {
      '@': resolve('src'),
    },
  },
  plugins: [
    new webpack.DefinePlugin({
      'process.env.VERSION': `${pkg.version}`,
    }),
  ],
}
